import axios from '@/utils/myAioxs'

/*export function loginAccount(authKey,timestamp) {
  return axios({
    url: '/auth/v1/login-account',
    method: 'post',
    params:{authKey,timestamp}
  })
}*/
export function loginAccount(data) {
  return axios({
    url: '/auth/v1/login-account',
    method: 'post',
    data
  })
}
export function loginPhone(data) {
  return axios({
    url: '/auth/v1/login-phone',
    method: 'post',
    data
  })
}
export function logout() {
  return axios({
    url: '/auth/v1/logout',
    method: 'get',
  })
}
export function phoneCode(data) {
  return axios({
    url: '/code/v1/phone-code',
    method: 'post',
    data
  })
}
export function picCode(deviceId) {
  return axios({
    url: `/code/v1/identify-image-base64/${deviceId}`,
    method: 'get',
  })
}
export function getInfo() {
  return axios({
    url: '/user/v1/info',
    method: 'get',
  })
}
export function logoutAccount() {
  return axios({
    url: "/auth/v1/logout",
    method: 'get',
  })
}
